package chess;

import java.io.Serializable;

class Message implements Serializable{
	
	private static final long serialVersionUID = -6045511931865076621L;
	
	int mID;
	int man;
	int r;
	int c;
	String str;
	
	public Message(){
		mID = 0;
		man = 0;
		r = 0;
		c = 0;
		str = " ";
	}
	
	public Message(int mID,int man,int r ,int c,String str){
		this.mID = mID;
		this.man = man;
		this.r = r;
		this.c = c;
		this.str = str;
	}
	
	public void SetMessage(int mID){
		this.mID = mID;
	}
	
	public void SetMessage(int mID,int man,int r,int c){
		this.mID = mID;
		this.man = man;
		this.r = r;
		this.c = c;
	}
	
	public void SetMessage(int mID,String str){
		this.mID = mID;
		this.str = str;
	}
	
	public int GetID() {
		return mID;
	}
	
	public int GetChessMan() {
		return man;
	}
	
	public int GetR() {
		return r;
	}
	
	public int GetC() {
		return c;
	}
	
	public String GetStr(){
		return str;
	}
}

